package com.jeeplus.modules.web.entity;

import com.jeeplus.common.utils.base.annotation.Mobile;
import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.modules.sys.entity.User;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author liangbing
 * @version 1.0
 * @date 2021/3/11 16:03
 * @description 棋牌室服务生
 */
public class YjMahjongHallWaiters extends DataEntity<YjMahjongHallWaiters> {

    private static final long serialVersionUID = 2L;

    /**
     * 服务生编号
     */
    private String no;

    /**
     * 棋牌室
     */
    @NotNull(message = "棋牌室不能为空")
    private YjMahjongHall mahjongHall;

    /**
     * 服务生名称
     */
    @NotBlank(message = "名称不能为空")
    private String name;

    /**
     * 服务生手机
     */
    @NotBlank(message = "手机号不能为空")
    @Mobile
    private String mobile;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 是否接收语音推送
     */
    private Integer receiveCall;

    /**
     * 是否接收语音推送值
     */
    private String receiveCallVal;

    /**
     * 工作状态 0-不在工作 1-在工作
     */
    private Integer workState;

    /**
     * 工作状态值
     */
    private String workStateVal;

    /**
     * 创建者（业务员） open-id
     */
    private String openid;

    /**
     * 创建者（业务员）手机号
     */
    private String salesmanPhone;

    public YjMahjongHallWaiters() {
        super();
        this.setIdType(IDTYPE_AUTO);
    }

    public YjMahjongHallWaiters(String mahjongHallId, String name, String mobile) {
        this.setName(name);
        this.setMobile(mobile);

        YjMahjongHall yjMahjongHall = new YjMahjongHall();
        yjMahjongHall.setId(mahjongHallId);
        this.setMahjongHall(yjMahjongHall);
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public YjMahjongHall getMahjongHall() {
        return mahjongHall;
    }

    public void setMahjongHall(YjMahjongHall mahjongHall) {
        this.mahjongHall = mahjongHall;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Integer getReceiveCall() {
        return receiveCall;
    }

    public void setReceiveCall(Integer receiveCall) {
        this.receiveCall = receiveCall;
    }

    public String getReceiveCallVal() {
        return receiveCallVal;
    }

    public void setReceiveCallVal(String receiveCallVal) {
        this.receiveCallVal = receiveCallVal;
    }

    public Integer getWorkState() {
        return workState;
    }

    public void setWorkState(Integer workState) {
        this.workState = workState;
    }

    public String getWorkStateVal() {
        return workStateVal;
    }

    public void setWorkStateVal(String workStateVal) {
        this.workStateVal = workStateVal;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getSalesmanPhone() {
        return salesmanPhone;
    }

    public void setSalesmanPhone(String salesmanPhone) {
        this.salesmanPhone = salesmanPhone;
    }

    @Override
    public void preInsert() {
        super.preInsert();
    }

    @Override
    public void preUpdate() {
        super.preUpdate();
    }

    @Override
    public String getRemarks() {
        return super.getRemarks();
    }

    @Override
    public void setRemarks(String remarks) {
        super.setRemarks(remarks);
    }

    @Override
    public User getCreateBy() {
        return super.getCreateBy();
    }

    @Override
    public void setCreateBy(User createBy) {
        super.setCreateBy(createBy);
    }

    @Override
    public Date getCreateDate() {
        return super.getCreateDate();
    }

    @Override
    public void setCreateDate(Date createDate) {
        super.setCreateDate(createDate);
    }

    @Override
    public User getUpdateBy() {
        return super.getUpdateBy();
    }

    @Override
    public void setUpdateBy(User updateBy) {
        super.setUpdateBy(updateBy);
    }

    @Override
    public Date getUpdateDate() {
        return super.getUpdateDate();
    }

    @Override
    public void setUpdateDate(Date updateDate) {
        super.setUpdateDate(updateDate);
    }

    @Override
    public String getDelFlag() {
        return super.getDelFlag();
    }

    @Override
    public void setDelFlag(String delFlag) {
        super.setDelFlag(delFlag);
    }
}
